Skip to content

Source generators sample: net11.0, incremental pipeline with equatable models, caching test - #2383

Open
vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/89800-csharp-source-generators
Open

vladimir-pecanac-main wants to merge 1 commit into
CodeMazeBlog:mainfrom
vladimir-pecanac-main:seo/89800-csharp-source-generators

Conversation

@vladimir-pecanac-main

Copy link
Copy Markdown
Collaborator

Moves the app and test projects to net11.0 and keeps the generator on netstandard2.0 with Microsoft.CodeAnalysis.CSharp 5.9.0 in place of the Workspaces package, Scriban 7.6.1 with source embedding and PolySharp 1.17.1. The service generator now finds classes with ForAttributeWithMetadataName, passes an equatable record struct model through the pipeline, parses the template once and runs Execute per class, so one badly named class no longer stops the others. The marker attribute is internal with the Embedded attribute, the diagnostic text is fixed, the template gets its System usings, the launch profile becomes a Roslyn Component profile, and the checked-in Generated folder is regenerated from the net11.0 build. Tests move to MSTest 4.5.3 with Microsoft.NET.Test.Sdk 18.12.0 and coverlet.collector 10.1.0, and gain a diagnostic test and a test that proves the output step is cached after an unrelated edit.

…ine with equatable models, Roslyn 5.9.0, Scriban 7.6.1, MSTest 4.5.3, caching and diagnostic tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant